package com.qc.service;

import java.util.List;

import com.qc.entity.BusinessCategoryEntity;

public interface BusinessCategoryService {

	//所有商家一级类列表总数
    int getListBusinessCategoryCount(String name);
    
    //所有商家一级类列表
	List<BusinessCategoryEntity> getAllBusinessCategory(String name,int pageNo,int pageSize);
	
    //商家一级类新增
    int saveBusinessCategory(BusinessCategoryEntity businessCategory);
    
    //商家一级类删除
    int deleteBusinessCategoryId(long id);
    
    //商家一级类修改
    int updateBusinessCategoryId(BusinessCategoryEntity businessCategory);
    
    //查询所有商家一级类
  	List<BusinessCategoryEntity> getAllLevleOne();
  	
  	//查询所有二级分类 拒绝显示使用
  	List<BusinessCategoryEntity> getAllLevleTwo();
  	
  	//根据一级 查询二级
  	List<BusinessCategoryEntity> getAllLevleTwo(String parent);
  	
  	//所有商家二级类列表总数
    int getListBusinessCategoryCountTwo(String name,String parent);
    
    //所有秘书二级类列表
	List<BusinessCategoryEntity> getAllBusinessCategoryTwo(String name,String parent,int pageNo,int pageSize);
	
	BusinessCategoryEntity getBusinessCategoryEntityId(long id);
}
